package com.yanyilu.basing.mapper;

import com.yanyilu.basing.entity.OpenidUser;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.yanyilu.basing.entity.User;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Sxx
 * @since 2020-10-26
 */
public interface OpenidUserMapper extends BaseMapper<OpenidUser> {

    User getUserByOpenId(@Param("openid") String openid);

    String selectOpenidByUserId(@Param("userId")Integer userId);

    void deleteByUserId(@Param("userId")Integer userId);

}
